<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h3 class="counter">0</h3>
    <button class="increm">+1</button>
    <button class="decrem">-1</button>

    <script>
        let count = document.querySelector('.counter');
        let add = document.querySelector('.increm');
        let remove = document.querySelector('.decrem');

        let counter = 10;
        count.innerHTML = counter;

        add.addEventListener('click', function() {
            counter += 1;
            count.innerHTML = counter;
        })
        remove.addEventListener('click', function() {
            counter -= 1;
            count.innerHTML = counter;
        })
    </script>
</body>
</html>